import request from '@/ya/request';

const ExamineeApi = {
	// 根据准考证号查询考生信息
	getExamineeByNum: (examNumber) => {
		return request({
			url: '/examinee/exam-number',
			params: { examNumber: examNumber },
			method: 'GET',
			custom: {
				showLoading: false,
				auth: false,
				showError: false,
			},
		});
	},
	// 根据考点代码查询考生列表
	getExamineeByCode: (examSiteCode) => {
		return request({
			url: '/examinee/exam-site',
			params: { examSiteCode: examSiteCode },
			method: 'GET',
			custom: {
				showLoading: false,
				auth: false,
				showError: false,
			},
		});
	},
	// 查询已签到的考生列表
	getRoomDetailById: (examSiteCode) => {
		return request({
			url: '/room/invitation/getInfo',
			method: 'GET',
			params: { examSiteCode: examSiteCode },
			custom: {
				showLoading: false,
				loading: false, // 不用加载中
				showError: false, // 不展示错误提示
				auth: false,
			},
		});
	},
};

export default ExamApi;